import java.io.File
import java.util.concurrent.ConcurrentHashMap
import mammuthus.client.ConfClient
import net.csdn.ServiceFramwork
import net.csdn.bootstrap.Application
import org.joda.time.DateTime
import org.joda.time.format.DateTimeFormat
import org.slf4j.LoggerFactory
import mammuthus.proxy.MammuthusConfControl
/**
 * Created by fbj on 15-1-15.
 */
object App {

  val logger = LoggerFactory.getLogger(classOf[App])
  def main(args: Array[String]) {
//    val format = DateTimeFormat.forPattern("dd-MM-yyyy HH:mm:ss");
//    val kk = DateTime.parse("18-05-2015 16:18:05",format)
//    println( (DateTime.now().getMillis-kk.getMillis)/1000)

    val l = new File( "./template/assets/" ).list().map {
      file =>
        val name = file.replace(".tar.gz", "")
        val arr = name.split("-")
        //appName, appVersion
        (arr(0), arr(1))
    }.groupBy(_._1).map(l => (l._1, l._2.reverse))

    println(1)
  }

}
class App
